home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / addpath1.zip / ADDPATH.DOC < prev    next >
Text File  |  1989-02-13  |  4KB  |  105 lines

  1.  
  2. ADDPATH, CHGPATH, DELPATH, and INSPATH version 1.1 are Copyright (c) 1989 by
  3. Paul W. Pritchard [76566,1532].  All rights reserved.
  4.  
  5. Certain portions of the code are Copyright (c) 1989 by Cyco software and
  6. Bart Mellink [76702,256].  Used with permission.
  7.  
  8.  
  9. Disclaimer.
  10.  
  11. The author claims no responsibility for any damages caused by the use or
  12. misuse of these programs.  These programs are distribution "as is" with no
  13. warranty expressed or implied.  The author will not be responsible for any
  14. losses incurred by the use of these programs.
  15.  
  16.  
  17. Introduction.
  18.  
  19. ADDPATH, CHGPATH, DELPATH, and INSPATH are batch file utilities designed
  20. to facilitate changes to your path statement by adding, changing, deleting,
  21. and inserting directories into the path.  Some programs are unable to find
  22. their associated files, such as overlay or configuration information, unless
  23. you are currently in their directory or add their directory to your path
  24. statement.  A long path statement causes searches in directories that are
  25. used only when these programs run.  With these programs it is possible to
  26. design a batch file that modifies the path statement, runs the program,
  27. then changes the path back to normal.
  28.  
  29.  
  30. Addpath.
  31.  
  32. To add a directory to the end of the path enter ADDPATH followed by the
  33. pathname of the directory.
  34.  
  35. Example: if your path statement is PATH=C:\;C:\DOS and you want to add
  36.          C:\UTIL, enter ADDPATH C:\UTIL.  The resulting path will be
  37.          PATH=C:\;C:\DOS;C:\UTIL.
  38.  
  39. Errorlevels returned by ADDPATH are:
  40.  
  41.          0 - no error
  42.          1 - no directory was specified on the command line
  43.          2 - directory already in path
  44.          3 - environment area full
  45.  
  46.  
  47. Chgpath.
  48.  
  49. To change a directory in the path to another directory, enter CHGPATH
  50. followed by the pathnames of the old and new directories.
  51.  
  52. Example: if your path statement is PATH=C:\;C:\DOS;C:\UTIL and you want to
  53.          change C:\UTIL to C:\UTILITY, enter CHGPATH C:\UTIL C:\UTILITY.  The
  54.          resulting path will be PATH=C:\;C:\DOS;C:\UTILITY.
  55.  
  56. Errorlevels returned by CHGPATH are:
  57.  
  58.          0 - no error
  59.          1 - less than 2 directories were specified on the command line
  60.          2 - old directory not in path, or new directory already in path
  61.          3 - environment area full
  62.  
  63. Delpath.
  64.  
  65. To delete a directory from the path enter DELPATH followed by the pathname of
  66. the directory.
  67.  
  68. Example: if your path statement is PATH=C:\;C:\DOS;C:\UTIL and you want to
  69.          delete C:\DOS, enter DELPATH C:\DOS.  The resulting path will be
  70.          PATH=C:\;C:\UTIL.
  71.  
  72. Errorlevels returned by DELPATH are:
  73.  
  74.          0 - no error
  75.          1 - no directory was specified on the command line
  76.          2 - directory not in path
  77.          3 - environment area full
  78.  
  79. Inspath.
  80.  
  81. To insert a directory into the path enter INSPATH followed by the pathnames of
  82. the directory to insert before and the directory to insert.  If you want to
  83. insert a directory at the end of the path, use ADDPATH.
  84.  
  85. Example: if your path statement is PATH=C:\;C:\UTIL and you want to insert
  86.          C:\DOS before C:\UTIL, enter INSPATH C:\UTIL C:\DOS.  The resulting
  87.          path will be PATH=C:\;C:\DOS;C:\UTIL.
  88.  
  89. Errorlevels returned by INSPATH are:
  90.  
  91.          0 - no error
  92.          1 - less than 2 directories were specified on the command line
  93.          2 - before directory not in path, or new directory already in path
  94.          3 - environment area full
  95.  
  96.  
  97. Revision history.
  98.  
  99. 02/07/89  Version 1.0.  Initial release of ADDPATH and DELPATH.
  100.  
  101. 02/13/89  Version 1.1.  Added CHGPATH and INSPATH.  Fixed bugs in ADDPATH
  102.           and DELPATH (thanks to Tom Clark for pointing out bug in ADDPATH).
  103.           Changed from EXE to COM files.
  104.  
  105.